package phoenixAAD.WifiFlashDrive;

public class Response 
{

	/*
	 * NOTE:
	 * End of line is represented by ASCII CR LF (0xD 0xA), and seems like \r\n is getting converted to those
	 * This is automatically added onto any string passed to Protocol.send()
	 * 
	 * To have multi-line reply, the format needs to be in the following:
	 * key: # = response code, <sp> = space, <EOL> = end of line
	 * #-text<EOL>text<EOL> ...  text<EOL>#<sp>text<EOL>
	 * http://www.eli.sdsu.edu/courses/spring96/cs596/notes/ftp/ftp.html
	 */
	
	public static final String
	EOL = "\r\n",
	WELCOME = 	"220-Connected" + EOL +
				"220-===================================" + EOL +
				"220- Welcome to WiFi Flash Drive" + EOL +
				"220- Author: Ludovic Lang, Takahiro Karasawa" + EOL +
				"220 ===================================",
	NEED_PW =	"331 Need password",
	LOGIN_SUCCESSFUL="230 Login sucessful, proceeding.",
	INCORRECT_LOGIN="530 Incorrect username or password",
	NOT_LOGGEDIN = "530 Not logged in.",
	UNKNOWN_COMMAND="500 Unknown command.",
	BAD_ARGUMENT = "501 Syntax error in parameters or arguments",
	NOT_IMPLEMENTED = "502 Command not implemented",
	ARGUMENT_NOT_IMPLEMENTED = "504 Command not implemented for that parameter",
	STILL_ALIVE="200 Still connected.",	
	TRANSFER_SUCCESS = "226 Transfer OK",
	FILE_NOT_FOUND = "550 File not found.",
	TYPE_SET = "200 Type set to ",
	MODE_SET = "200 Mode set to ",
	STRUCTURE_SET = "200 Structure set to ",
	CONNECTION_ACCEPT = "150 Connection accepted",
	CONNECT_FAILED = "425 Can't open data connection.",
	ENCODE_SUCCESS = "200 UTF-8 used by default",
	ENCODE_FAILED = "502 No Windows, you rarely send in correct UTF8 encoding, using SHIFT JIS",
	CONNECTION_TIMEOUT = "421 Connection timed out",
	
	TRANSMIT_ERROR = "451 Requested action aborted: local error in processing."
	
	;
}
